import Tips from './Tips';
import wepy from 'wepy';

///通用的wx.api调用封装类
export default class wxapiUtils {

    static async getSetting()
    {
        var rs=await wepy.getSetting().catch(ex=>{});
        if(rs!=null && rs.authSetting)
        {
           return rs.authSetting;
        }else{
            return {};
        }
    }

    static async authorize(scope)
    {
        var rs=await wepy.authorize({scope:scope});
        return rs;
    }

 

}